/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package isd.inventario.modelo;

import java.io.Serializable;
import javax.persistence.Embeddable;

/**
 *
 * @author Claudio
 */
@Embeddable
public class ST_SectorPK implements Serializable {

    private String deposi;
    private String sector;

    public ST_SectorPK() {
    }

    public ST_SectorPK(String deposi, String sector) {
        this.deposi = deposi;
        this.sector = sector;
    }

    public String getSttdeiDeposi() {
        return deposi;
    }

    public void setSttdeiDeposi(String sttdeiDeposi) {
        this.deposi = sttdeiDeposi;
    }

    public String getSttdeiSector() {
        return sector;
    }

    public void setSttdeiSector(String sttdeiSector) {
        this.sector = sttdeiSector;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (deposi != null ? deposi.hashCode() : 0);
        hash += (sector != null ? sector.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ST_SectorPK)) {
            return false;
        }
        ST_SectorPK other = (ST_SectorPK) object;
        if ((this.deposi == null && other.deposi != null) || (this.deposi != null && !this.deposi.equals(other.deposi))) {
            return false;
        }
        if ((this.sector == null && other.sector != null) || (this.sector != null && !this.sector.equals(other.sector))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "tv.inventario.modelo.SectorPK[sttdeiDeposi=" + deposi + ", sttdeiSector=" + sector + "]";
    }

}
